package cn.jsu.projectmanage.dao.projectManage;


import cn.jsu.projectmanage.pojo.vo.AccountInfo;
import cn.jsu.projectmanage.pojo.vo.UpdateUserPasswordVO;
import cn.jsu.projectmanage.pojo.dto.UserInfo;
import cn.jsu.projectmanage.pojo.vo.LoginResponseVO;
import cn.jsu.projectmanage.pojo.vo.LoginVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {
    Integer queryAccount(@Param("userAccount")String userAccount);

    LoginResponseVO queryAccountInfo(LoginVO loginVO);

    void register(AccountInfo accountInfo);

    List<UserInfo> queryUserInfoAll();

    Integer updateUserPassword(UpdateUserPasswordVO updateUserPasswordVO);

    String queryOldUserPassword(UpdateUserPasswordVO updateUserPasswordVO);

    List<UserInfo> queryUserInfoGroup(@Param("groupId")Integer groupId);

    UserInfo queryUserInfoById(@Param("userId")Integer userId);

}
